from django.db import models

# Create your models here.


# Create your models here.
from user.models import UserInfo


class JieInfo(models.Model):
    jie_id = models.AutoField(primary_key=True)
    jie_user = models.ForeignKey(UserInfo, on_delete=models.CASCADE)
    jie_section = models.CharField(max_length=20)
    jie_titile = models.CharField(max_length=50)
    jie_content = models.CharField(max_length=50)
    jie_comment = models.IntegerField(default=0)
    jie_date = models.DateTimeField(default='2008-08-08')
    jie_kiss = models.IntegerField()

    class Meta:
        db_table = 'jieinfo'
